A new algorithm for testing if a regular language is locally threshold testable

نویسنده

  • Mikolaj Bojanczyk
چکیده

A new algorithm is presented for testing if a regular language is locally threshold testable. The new algorithm is slower than existing algorithms, but its correctness proof is shorter. The proof idea is to restate the problem in Presburger arithmetic. A language L ⊆ A * is called locally threshold testable (LTT) if it is a Boolean combination of languages of the form: a) words that have w ∈ A * as a prefix; or b) words that have w ∈ A * as a suffix; or c) words that have w ∈ A * as an infix at least n times. For instance, the language a + b + a + b + is locally threshold testable, as witnessed by: " words that have a as a prefix, have ab as an infix exactly two times, and have ba as an infix exactly one time ". By Gaifman's theorem, locally threshold testable is equivalent to being definable in first-order logic with the successor relation on positions. This paper presents a new proof of the following theorem: Theorem 1 It is decidable if a regular language L is locally threshold testable. As observed by Beauquier and Pin in [1,2], the above problem is decidable by a result of Thérien and Weiss [8]. A polynomial time algorithm – with respect to the minimal deterministic automaton for L – was presented by Pin in [4,5]. The approach of [8,2,1,4,5] uses semigroup theory; the crux is that a language is locally threshold testable if and only if its syntactic semigroup satisfies certain swapping conditions. However, proving that the swapping conditions are sufficient requires involved combinatorics. The proof in this paper does not use semigroups, only Parikh images and Presburger arithmetic. The point is to provide an alternative proof of decidability, even if the algorithm is quite slow (several exponentials).

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Reducing the Time Complexity of Testing for Local Threshold Testability

A locally threshold testable language L is a language with the property that for some nonnegative integers k and l and for some word u from L, a word v belongs to L iff (1) the prefixes [suffixes] of length k − 1 of words u and v coincide, (2) the numbers of occurrences of every factor of length k in both words u and v are either the same or greater than l − 1. A deterministic finite automaton ...

متن کامل

Separating Regular Languages by Locally Testable and Locally Threshold Testable Languages

A separator for two languages is a third language containing the first one and disjoint from the second one. We investigate the following decision problem: given two regular input languages, decide whether there exists a locally testable (resp. a locally threshold testable) separator. In both cases, we design a decision procedure based on the occurrence of special patterns in automata accepting...

متن کامل

On Separation by Locally Testable and Locally Threshold Testable Languages

A separator for two languages is a third language containing the first one and disjoint from the second one. We investigate the following decision problem: given two regular input languages, decide whether there exists a locally testable (resp. a locally threshold testable) separator. In both cases, we design a decision procedure based on the occurrence of special patterns in automata accepting...

متن کامل

Groups whose Geodesics are Locally Testable

A regular set of words is (k-)locally testable if membership of a word in the set is determined by the nature of its subwords of some bounded length k. In this article we study groups for which the set of all geodesic words with respect to some generating set is (k-)locally testable, and we call such groups (k-)locally testable. We show that a group is 1-locally testable if and only if it is fr...

متن کامل

An Algorithm to Verify Local Threshold Testability of Deterministic Finite Automata

A locally threshold testable language L is a language with the property that for some nonnegative integers k and l, whether or not a word u is in the language L depends on (1) the preex and suux of the word u of length k?1 and (2) the set of intermediate substrings of length k of the word u where the sets of substrings occurring at least j times are the same, for j l. For given k and l the lang...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Inf. Process. Lett.

دوره 104  شماره 

صفحات  -

تاریخ انتشار 2007